package com.glorystone.ins.service.impl;

import com.glorystone.ins.common.common.PageVo;
import com.glorystone.ins.dao.DepositRecordMapper;
import com.glorystone.ins.domain.DepositRecord;
import com.glorystone.ins.interceptor.PageList;
import com.glorystone.ins.service.DepositRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by wangwei on 2018/3/15.
 */
@Slf4j
@Service
public class DepositRecordServiceImpl implements DepositRecordService {

    @Autowired
    private DepositRecordMapper depositRecordMapper;

    @Override
    public PageList<DepositRecord> findHistoryList(PageVo vo) {
        return depositRecordMapper.findHistoryList(vo, vo.getPageable());
    }

    @Override
    public void save(DepositRecord depositRecord) {
        depositRecordMapper.save(depositRecord);
    }
}
